<?php
/**
 * +----------------------------------------------------------------------
 * | 会员管理模型
 */
namespace app\model;

// 引入框架内置类
use think\facade\Db;
use think\model;

class User extends Model
{
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $table = 'user';


    public static function getInfo($uid){
        $res = self::where('id',$uid)->find();
        return $res;
    }

    public static function getInfoWhereIn($whereIn){
        $res = self::whereIn('id',$whereIn)->select();
        return $res;
    }

    public static function getInfoByPwd($where){
        $res = self::where($where)->find();
        return $res;
    }

}
